package week4;

/**
 * Created by dell on 2017/3/14.
 */
public class RandomCounts {
    public static void main(String[] args){
        int[] counts = new int[10];
        int number;
        for(int i = 1; i <= 100; i++){
            number = (int) (Math.random()*10);
            counts[number] ++;
        }
        for(int n = 0; n < counts.length; n++){
            System.out.printf("%4d",counts[n]);
        }
    }
}
